package cn.lyn4ever.goods.web.service.impl;

import cn.lyn4ever.entity.ProductType;
import cn.lyn4ever.goods.web.mapper.ProductTypeDao;
import cn.lyn4ever.goods.web.service.ProductTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 这个是商品的类型表，还是要有分级的(ProductType)表服务实现类
 *
 * @author makejava
 * @since 2020-03-26 22:55:32
 */
@Service("productTypeService")
public class ProductTypeServiceImpl implements ProductTypeService {
    @Resource
    private ProductTypeDao productTypeDao;


    @Override
    public List<ProductType> getProductTypeLevel1() {
        return productTypeDao.getProductTypeLevel1();
    }

    @Override
    public List<ProductType> getProductTypeLevel2(Integer sjid) {
        return productTypeDao.getProductTypeLevel2(sjid);
    }
}